const { DataTypes } = require('sequelize');
const sequelize = require('../db');

const DirImgList = sequelize.define('DirImgList', {
  lujing: { //名称
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  filename: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  dirpath: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  daxiao: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  shijian: {// 范围
    type: DataTypes.DATE,
    allowNull: false,
  },
  miaoshu: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
  zhuangtai: {// 范围
    type: DataTypes.STRING(255),
    allowNull: false,
  },
});

module.exports = {DirImgList, sequelize};